package sz.szsmk.citizencard.mvp.contract;

import sz.szsmk.citizencard.model.network.bean.response.IbaseBean;
import sz.szsmk.citizencard.model.network.bean.response.QueryAdressResponse;
import sz.szsmk.citizencard.ui.base.IBaseContact;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/5/22 15:42
 * description:
 */
public interface IAdressAdminContact {

    interface IAdressAdminPresenter<T extends IBaseContact.IBaseView>
            extends IBaseContact.IBasePresenter {
        void getAdress();

        void delAdress(int id);


        void updataAdress(String name, String phone, String desAddress, int adressId, String city);

    }

    interface IAdressAdminView extends IBaseContact.IBaseView {

        // 获得数据失败
        void getAdressError(String response);

        void getAdressSuccess(QueryAdressResponse response);

        void delAdressSuccess();

        void updataSuccess();

        void updataFaile(IbaseBean response);
    }


}
